\usepackage{graphicx}
\usepackage{a4wide}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage[cm]{sfmath}
\usepackage{cprotect}
\usepackage{enumitem}
\usepackage{textcomp}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}

\usepackage{hyperref}
\hypersetup{colorlinks=true,urlcolor=blue}

\renewcommand*{\familydefault}{\sfdefault}

\renewcommand{\headrulewidth}{0pt}
\rhead{\includegraphics[width=4cm]{gfx/liu.pdf}}
\lhead{\today \vspace{0.8cm}}

\renewcommand{\maketitle}[1]{%
  \noindent
  \includegraphics[width=5cm]{gfx/hopsan.png} \vspace{0.3cm} \\
  \LARGE \textsf{\textbf{Tutorial - #1}} \vspace{-0.1cm} \\ \rule{\textwidth}{1.2pt}\normalsize
}

\newcommand{\listicon}[3]{%
  \vspace{-4pt}
  \icon{#1}{#2}{#3}
  \vspace{-10pt}
}

\newcommand{\foldericon}[2]{%
  \listicon{#1}{{gfx/Hopsan-Folder.png}}{#2}
}

\newcommand{\icon}[3]{%
  \vspace{5pt}
  \def\temp{0.5cm}
  \hspace{\dimexpr\temp*#1}
  \begin{tabular}{m{12pt} m{10cm}}
    \includegraphics[width=12pt]{#2} & \hspace{-10pt} \textit{\textbf{#3}} 
  \end{tabular}
  \par
  \vspace{3pt}
}

\newcommand{\component}[2]{%
  \vspace{2pt}
  \def\temp{0.5cm}
  \hspace{\dimexpr\temp*#1-0.2cm}
  \begin{tabular}{m{0.2cm} m{10cm}}
    & \textit{#2}
  \end{tabular}
  \par
  \vspace{-6pt}
}

\newcommand{\tutitem}[1]{%
  \bfseries\item\textbf{#1}\normalfont\\
}

\newenvironment{tutenumerate}
{\begin{enumerate}[label=\textbf{\arabic*}.]
}
{\end{enumerate}
}

